package com.wyj.Controller;

import com.wyj.api.UserApi;
import com.wyj.entity.User;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO: 用户控制层
 *
 * @author wuyijie
 * @date 2022/1/14 9:35 PM
 */
@RestController
@RequestMapping("/user")
@Slf4j
public class UserController {
    // @DubboReference(interfaceClass = UserApi.class, group = "default")
    // private UserApi userApi;
    //
    //
    // @RequestMapping(value = "/{id}")
    // private User user(@PathVariable String id) {
    //     log.debug("UserController user id:{}", id);
    //     return userApi.methodA();
    //
    // }
}
